package com.baby.work.domain.proxy;

public class ProxySinger implements ISinger{
    private ISinger singer;

    public ProxySinger(ISinger singer) {
        this.singer = singer;
    }

    @Override
    public void sing(String name) {
        System.out.println("before");
        singer.sing(name);
        System.out.println("after");
    }
}
